package com.example.finaltool.consts.task;

import com.example.finaltool.consts.key.CoreKey;
import com.example.finaltool.model.CunDepInfo;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author dengbw
 * @date 2021/8/9 4:49 下午
 */
public class Task {
    private Task(){}
    private static final Map<String, String> EXT_LABEL = new HashMap<>();
    private static final Map<String, String> FUNCTION_LABEL = new HashMap<>();

    public static String getExtLabel(String name) {
        if (CollectionUtils.isEmpty(EXT_LABEL)) {
            EXT_LABEL.put("请假管理", "请假");
            EXT_LABEL.put("疫情排查", "来访人员登记表");
            EXT_LABEL.put("居家防控", "居家防疫打卡（拍照）");
            EXT_LABEL.put("农事课堂", "云课堂");
        }
        return EXT_LABEL.getOrDefault(name, name);
    }

    public static String getFunctionLabel(String name) {
        if (CollectionUtils.isEmpty(FUNCTION_LABEL)) {
            FUNCTION_LABEL.put("乡亲投票", "智能填表");
            FUNCTION_LABEL.put("视频课堂", "云课堂");
            FUNCTION_LABEL.put("工作汇报", "日志");
            FUNCTION_LABEL.put("投票管理", "智能填表");
        }
        return FUNCTION_LABEL.getOrDefault(name, name);
    }

    public static final List<Long> extNeed = new ArrayList<>(List.of(
            1L, 2L, 3L, 4L, 5L, 13L, 14L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 27L));

    public static final List<String> functionNeed = new ArrayList<>(List.of(
            "/upload/group1/M00/00/0F/AXTfEGDyk_SAHtl1AAAcnKKwvvo760.svg",
            "/upload/group1/M00/00/0F/AXTfEGDyk_SAQ-zvAAAVDdyvy30941.svg"
    ));

    public static List<CmmExtTask> extTask(String corpId, Map<String, String> core) {
        return new ArrayList<>(List.of(
                new CmmExtTask(1L, "采购计划", 1, buildUrl(corpId, core.get(CoreKey.CAIGOU)), corpId, 1),
                new CmmExtTask(2L, "用车申请", 2, buildUrl(corpId, core.get(CoreKey.YONGCHE)), corpId, 1),
                new CmmExtTask(3L, "通用审批", 3, buildUrl(corpId, core.get(CoreKey.SHENPI)), corpId, 1),
                new CmmExtTask(4L, "请假管理", 4, buildUrl(corpId, core.get(CoreKey.QINGJIA)), corpId, 1),
                new CmmExtTask(5L, "任务管理", 5, buildUrl(corpId, core.get(CoreKey.RENWU)), corpId, 1),
                new CmmExtTask(6L, "我的待办", 6, "https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_web_timestamp=1619841476237&showmenu=false&dd_share=false&corpid=" + corpId + "#/upcoming?swfrom=work_homepage&modalGroup=todo", corpId, 1),
                new CmmExtTask(7L, "疫情通报", 7, "https://m.yangshipin.cn/static/2020/c0126.html", corpId, 1),
                new CmmExtTask(8L, "疫情快讯", 8, "https://alihealth.taobao.com/medicalhealth/influenzamap", corpId, 1),
                new CmmExtTask(9L, "疫情快讯2级", 9, "https://news.sina.cn/zt_d/feiyan1231", corpId, 1),
                new CmmExtTask(10L, "疫情通报2级", 10, "http://www.nhc.gov.cn/xcs/yqtb/list_gzbd.shtml", corpId, 1),
                new CmmExtTask(11L, "不实言论", 11, "https://ncov.dxy.cn/ncovh5/view/pneumonia_rumors?from=groupmessage&isappinstal", corpId, 1),
                new CmmExtTask(12L, "防疫知识", 12, "http://m.chinacdc.cn/jkzt/crb/yl/hrb_11806/", corpId, 1),
                new CmmExtTask(13L, "疫情排查", 13, "https://swform.dingtalk.com/index.htm?corpId=" + corpId + "&formCode=" + core.get(CoreKey.DENGJI) + "&bizType=0#/queWrite/" + corpId + "/" + core.get(CoreKey.DENGJI) + "/3ab5b77206b2a850e44817cfa29662b7?bizType=0", corpId, 1),
                new CmmExtTask(14L, "健康打卡", 14, "https://swform.dingtalk.com/index.htm?corpId=" + corpId + "&formCode=" + core.get(CoreKey.JIANKANG) + "&bizType=0#/queWrite/" + corpId + "/" + core.get(CoreKey.JIANKANG) + "/3ab5b77206b2a850e44817cfa29662b7?bizType=0", corpId, 1),
                new CmmExtTask(15L, "患者同乘", 15, "https://broccoli.uc.cn/apps/feiyansearch/routes/d_beY5eo", corpId, 1),
                new CmmExtTask(16L, "居家防控", 16, "https://swform.dingtalk.com/index.htm?corpId=" + corpId + "&formCode=" + core.get(CoreKey.JUJIA) + "&bizType=0#/queWrite/" + corpId + "/" + core.get(CoreKey.JUJIA) + "/3ab5b77206b2a850e44817cfa29662b7?bizType=0", corpId, 1),
                new CmmExtTask(17L, "出入管理", 17, buildUrl(corpId, core.get(CoreKey.CHURU)), corpId, 1),
                new CmmExtTask(18L, "签到", 18, core.get(CoreKey.QIANDAO), corpId, 1),
                new CmmExtTask(19L, "走访日志", 19, buildUrl(corpId, core.get(CoreKey.ZOUFANG)), corpId, 1),
                new CmmExtTask(20L, "电话会议", 20, core.get(CoreKey.DIANHUA), corpId, 1),
                new CmmExtTask(21L, "视频会议", 21, core.get(CoreKey.SHIPIN), corpId, 1),
                new CmmExtTask(22L, "智能会议室", 22, core.get(CoreKey.HUIYISHI), corpId, 1),
                new CmmExtTask(23L, "一键装机", 23, "http://broad.10010lt.com/woseenpro//e10010/online/AiProducts.do?data=", corpId, 1),
                new CmmExtTask(24L, "抽奖", 24, "http://218.60.2.205:8736/#/luck_draw_new?token=", corpId, 1),
                new CmmExtTask(25L, "抽奖记录", 25, "http://218.60.2.205:8736/#/reward_records?token=", corpId, 1),
                new CmmExtTask(26L, "注册地址", 26, "http://digital-village.lnch-tech.com:14005/index.html", corpId, null),
                new CmmExtTask(27L, "农事课堂", 27, core.get(CoreKey.KETANG), corpId, 1),
                new CmmExtTask(28L, "电商直播", 28, "https://img.client.10010.com/zhibo/index.html#/liveplayer?userId=9100052&from=LiveList", corpId, 1),
                new CmmExtTask(29L, "联通APP", 29,"https://m.10010.com/", corpId,  1),
                new CmmExtTask(30L, "农户首页轮播", 30, "[{\"image\":\"../../static/image/beautiful_country.png\",\"path\":\"pages/beautiful/index\"},{\"image\":\"../../static/image/gov_banner.png\",\"path\":\"pages/party/index\"}]", corpId, 1),
                new CmmExtTask(31L, "干部首页轮播", 31, "[{\"image\":\"../../static/image/beautiful_country.png\",\"path\":\"pages/beautiful/index\"},{\"image\":\"../../static/image/gov_banner.png\",\"path\":\"pages/party/index\"}]", corpId, 1)
        ));
    }

    private static String buildUrl(String corpId, String code) {
        return "https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_web_timestamp=1619841885741&corpid=" + corpId + "&dd_share=false&showmenu=false&dd_progress=false&swfrom=qrshareh5&processCode=" + code + "&back=native#/custom";
    }

    public static List<CmmFunctionTask> zhenConfigTask(String corpId, Map<String, String> core) {
        return new ArrayList<>(List.of(
                new CmmFunctionTask(3, 1, null, 2, "三务公开", "pages/open/index", "三务公开", "/upload/group1/M00/00/0F/AXTfEGDykMmAYqcwAAAUbThx4Sg723.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAYqcwAAAUbThx4Sg723.svg", null, null, true),
                new CmmFunctionTask(3, 1, null, 2, "领导班子", "pages/leaders/index", "领导班子", "/upload/group1/M00/00/0F/AXTfEGDykMmAR6x3AAAbsmYO4tA413.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAR6x3AAAbsmYO4tA413.svg", null, null, true),
                new CmmFunctionTask(3, 1, null, 2, "惠农政策", "pages/farm/index", "惠农政策", "/upload/group1/M00/00/0F/AXTfEGDykMmAOfKtAAAcHRf89K0285.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAOfKtAAAcHRf89K0285.svg", null, null, true),
                new CmmFunctionTask(3, 1, null, 2, "我有困难", "pages/people/index", "我有困难", "/upload/group1/M00/00/0F/AXTfEGDykMmAfTPDAAAUUDQZdk4777.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAfTPDAAAUUDQZdk4777.svg", null, null, true),
                new CmmFunctionTask(3, 1, null, 2, "看家护院", "pages/brightPerson/index", "看家护院", "/upload/group1/M00/00/0F/AXTfEGDykMmAYopkAAAcEhIszcU430.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAYopkAAAcEhIszcU430.svg", null, null, true),
                new CmmFunctionTask(3, 2, null, 2, "大喇叭", "pages/horn/index", "大喇叭", "/upload/group1/M00/00/0F/AXTfEGDykMmAB5i5AAAYNzivoRg947.svg", 1, "/upload/group1/M00/00/0F/AXTfEGDykMmAB5i5AAAYNzivoRg947.svg", 1, null, true),
                new CmmFunctionTask(3, 2, null, 2, "通知栏", "pages/notice/index", "通知栏", "/upload/group1/M00/00/0F/AXTfEGDykMmAaeALAAAUMLdyaHk752.svg", 1, "/upload/group1/M00/00/0F/AXTfEGDykMmAaeALAAAUMLdyaHk752.svg", 5, null, true),
                new CmmFunctionTask(3, 3, null, 2, "招工信息", "pages/laborer/index", "招工信息", "/upload/group1/M00/00/0F/AXTfEGDykMiAM7NSAAAVgguzhXw827.svg", 1, "/upload/group1/M00/00/0F/AXTfEGDykMiAM7NSAAAVgguzhXw827.svg", 3, null, true),
                new CmmFunctionTask(3, 3, null, 2, "农资服务", "pages/farmerAdvisory/index", "农资服务", "/upload/group1/M00/00/0F/AXTfEGDykMiATMrPAAAZKtkWmlk006.svg", 1, "/upload/group1/M00/00/0F/AXTfEGDykMiATMrPAAAZKtkWmlk006.svg", 4, null, true),
                new CmmFunctionTask(3, 4, null, 1, "宽带安装", "pages/key/index", "宽带安装", "/upload/group1/M00/00/0F/AXTfEGDykMmAHSDUAAAYAkE5IME704.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAHSDUAAAYAkE5IME704.svg", null, null, true),
                new CmmFunctionTask(3, 4, null, 1, "联通APP", "https://m.10010.com/", "联通APP", "/upload/group1/M00/00/0F/AXTfEGDykMmAF95nAAATierTYQw724.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAF95nAAATierTYQw724.svg", null, null, true),
                new CmmFunctionTask(3, 4, null, 2, "乡村钱包", "pages/wallet/index", "乡村钱包", "/upload/group1/M00/00/0F/AXTfEGDykMmAM9cMAAAULAgt3vY627.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAM9cMAAAULAgt3vY627.svg", null, null, true),
                new CmmFunctionTask(3, 5, null, 2, "美丽乡村", "pages/beautiful/index", "美丽乡村", "/upload/group1/M00/00/0F/AXTfEGDykMiAJ8WHAAAXeNkFME4362.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMiAJ8WHAAAXeNkFME4362.svg", null, null, true),
                new CmmFunctionTask(3, 5, null, 2, "乡村快讯", "pages/news/index", "乡村快讯", "/upload/group1/M00/00/0F/AXTfEGDykMiAV5W6AAAWsmacEU4666.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMiAV5W6AAAWsmacEU4666.svg", null, null, true),
                new CmmFunctionTask(3, 5, null, 2, "农事指导", "/pages/farmerGuide/index", "农事指导", "/upload/group1/M00/00/0F/AXTfEGDykMiAZUsoAAAfjsy_IOw797.svg", 1, "/upload/group1/M00/00/0F/AXTfEGDykMiAZUsoAAAfjsy_IOw797.svg", 2, null, true),
                new CmmFunctionTask(3, 4, null, 2, "疫情防控", "pages/sick/index", "疫情防控", "/upload/group1/M00/00/17/AXTfEGEaCNaAYunHAAASx9GTQ_U178.svg", 2, "/upload/group1/M00/00/17/AXTfEGEaCNaAYunHAAASx9GTQ_U178.svg", null, null, true),
                new CmmFunctionTask(3, 8, null, 2, "我的签到", "pages/sign/index", "我的签到", "/upload/group1/M00/00/0F/AXTfEGDykMmASE6uAAAUP_gPqAc366.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmASE6uAAAUP_gPqAc366.svg", null, null, true),
                new CmmFunctionTask(2, null, 1, 2, "党建天地", "pages/party/index", "党建天地", "/upload/group1/M00/00/0F/AXTfEGDyk_SAP8_GAAAad7DsivE105.svg", 1, "/upload/group1/M00/00/00/AXTfEGDBfjqAHkU6AAAo0ugEiow844.svg", 3, null, true),
                new CmmFunctionTask(2, null, 2, 2, "三务公开", "pages/open/index", "三务公开", "/upload/group1/M00/00/0F/AXTfEGDyk_SAUL4KAAAUdHPLjBU996.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAOCecAAAit4VbTwI521.svg", null, null, true),
                new CmmFunctionTask(2, null, 2, 2, "领导班子", "pages/leaders/index", "领导班子", "/upload/group1/M00/00/0F/AXTfEGDyk_SAKNjyAAAbufaB0Ws616.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjuAAkmaAAAp_aLfjk0050.svg", null, null, true),
                new CmmFunctionTask(2, null, 2, 2, "惠农政策", "pages/farm/index", "惠农政策", "/upload/group1/M00/00/0F/AXTfEGDyk_SAAw_TAAAcJKsrMkc112.svg", 1, "/upload/group1/M00/00/00/AXTfEGDBfjqAbJFHAAAqZpsxWh8013.svg", 2, null, true),
                new CmmFunctionTask(2, null, 2, 2, "农户信息", "pages/userInformation/list", "农户信息", "/upload/group1/M00/00/10/AXTfEGDyk_SAB9x5AAAk2G5TEv8554.svg", 1, "/upload/group1/M00/00/00/AXTfEGDBfjqAQM3MAAAy5kkq6Fs656.svg", 6, null, true),
                new CmmFunctionTask(2, null, 2, 2, "平安乡村", "pages/bright/index", "平安乡村", "/upload/group1/M00/00/0F/AXTfEGDyk_SAQ77sAAAcG76hYA8981.svg", 1, "/upload/group1/M00/00/00/AXTfEGDBfjqARN1ZAAAq3fdZ_P0722.svg", 1, null, true),
                new CmmFunctionTask(2, null, 3, 2, "大喇叭", "pages/horn/index", "大喇叭", "/upload/group1/M00/00/0F/AXTfEGDyk_SAaEETAAAYPsQKRxQ652.svg", 1, "/upload/group1/M00/00/00/AXTfEGDBfjqAQp1QAAAmhg9wQP0359.svg", 4, null, true),
                new CmmFunctionTask(2, null, 3, 2, "通知栏", "pages/notice/index", "通知栏", "/upload/group1/M00/00/10/AXTfEGD0SRWABl7XAAAi1tL1hR4317.svg", 1, "/upload/group1/M00/00/10/AXTfEGD0SRWABl7XAAAi1tL1hR4317.svg", 5, null, true),
                new CmmFunctionTask(2, null, 4, 1, "我的待办", "https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_web_timestamp=1619841476237&showmenu=false&dd_share=false&corpid=" + corpId + "#/upcoming?swfrom=work_homepage&modalGroup=todo", "我的待办", "/upload/group1/M00/00/0F/AXTfEGDyk_SABzBbAAAVefMWBCg009.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAa1GOAAAjyAFK7LU594.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 2, "督查督办", "pages/overseer/index", "督查督办", "/upload/group1/M00/00/10/AXTfEGDyk_SAYpsWAAAaiwcuJzs556.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAf9n3AAAo05e22OE501.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 2, "下户走访", "pages/visit/index", "下户走访", "/upload/group1/M00/00/10/AXTfEGDyk_SAMM3BAAAXmKgo0hg457.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqANG40AAAl2IWsPJw153.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 3, "工作汇报", core.get(CoreKey.RIZHI), "工作汇报", "/upload/group1/M00/00/0F/AXTfEGDyk_SAHtl1AAAcnKKwvvo760.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAPB-XAAAq0mz4Fio631.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 2, "会议管理", "pages/meeting/index", "会议管理", "/upload/group1/M00/00/10/AXTfEGDyk_SAMY4CAAAWlvqIEY0018.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAbxC9AAAk3OetFnA119.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 2, "行政管理", "pages/administer/index", "行政管理", "/upload/group1/M00/00/10/AXTfEGDyk_SAMcKzAAAVkhbkP0M035.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAcTKsAAAj2p6EYAI183.svg", null, null, true),
                new CmmFunctionTask(2, null, 4, 3, "投票管理", core.get(CoreKey.ZHINENG), "投票管理", "/upload/group1/M00/00/0F/AXTfEGDyk_SAQ-zvAAAVDdyvy30941.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqABpLqAAAjVPXXPss964.svg", null, null, true),
                new CmmFunctionTask(2, null, 5, 2, "美丽乡村", "pages/beautiful/index", "美丽乡村", "/upload/group1/M00/00/0F/AXTfEGDyk_SAJQ22AAAXf9kUV-8587.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAHpuUAAAlvMuFVYU773.svg", null, null, true),
                new CmmFunctionTask(2, null, 5, 2, "乡村快讯", "pages/news/index", "乡村快讯", "/upload/group1/M00/00/0F/AXTfEGDyk_SALXVgAAAWuaNN5d0319.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAKz2fAAAk9_OGdFE927.svg", null, null, true),
                new CmmFunctionTask(2, null, 5, 2, "农事指导", "/pages/farmerGuide/index", "农事指导", "/upload/group1/M00/00/0F/AXTfEGDyk_SAGQMqAAAfleDnAgM740.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqABZ5OAAAt0TomjfY860.svg", null, null, true),
                new CmmFunctionTask(2, null, 5, 2, "疫情防控", "pages/sick/index", "疫情防控", "/upload/group1/M00/00/0F/AXTfEGDyk_SAcYONAAATcA1By1g409.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDyk_SAcYONAAATcA1By1g409.svg", null, null, true),
                new CmmFunctionTask(3, 3, null, 1, "农村电商", "http://lnj.h5.lncwkj.com/login", "农村电商", "/upload/group1/M00/00/0F/AXTfEGDykMiAI2jzAAAYWX9HWhw947.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMiAI2jzAAAYWX9HWhw947.svg", null, null, true),
                new CmmFunctionTask(3, 9, null, 2, "党建天地", "pages/party/index", "党建天地", "/upload/group1/M00/00/0F/AXTfEGDykMmAX3KAAAAacMTYOVI499.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAX3KAAAAacMTYOVI499.svg", null, null, true),
                new CmmFunctionTask(3, 3, null, 1, "电商直播", "https://img.client.10010.com/zhibo/index.html#/liveplayer?userId=9100052&from=LiveList", "电商直播", "/upload/group1/M00/00/0F/AXTfEGDykMmAaRW0AAAW4kLk9Js963.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDykMmAaRW0AAAW4kLk9Js963.svg", null, null, true),
                new CmmFunctionTask(2, null, 2, 2, "一键开会", "/pages/videoCall/videoCall", "一键开会", "/upload/group1/M00/00/0F/AXTfEGDyk_SACIe_AAAZw6UOxgk419.svg", 2, "/upload/group1/M00/00/00/AXTfEGDBfjqAGT2OAAAoDOfOf5Y711.svg", null, null, true),
                new CmmFunctionTask(2, null, 2, 2, "我有困难", "pages/people/index", "我有困难", "/upload/group1/M00/00/0F/AXTfEGDyk_SAJcT4AAAUVvIMbWU671.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0umAGKDPAAATjKuz6GA288.svg", null, true, true),
                new CmmFunctionTask(2, null, 1, 2, "党建天地", "pages/party/index", "党建天地", "/upload/group1/M00/00/0F/AXTfEGDyk_SAP8_GAAAad7DsivE105.svg", 1, "/upload/group1/M00/00/00/rBBHwGCh1HqAGvp5AAAZsMb9f3c433.svg", 1, null, false),
                new CmmFunctionTask(2, null, 2, 2, "平安乡村", "pages/bright/index", "平安乡村", "/upload/group1/M00/00/0F/AXTfEGDyk_SAQ77sAAAcG76hYA8981.svg", 1, "/upload/group1/M00/00/00/rBBHwGCh1E2AbueEAAAbNUBu3W4705.svg", 3, null, false),
                new CmmFunctionTask(2, null, 2, 2, "领导班子", "pages/leaders/index", "领导班子", "/upload/group1/M00/00/0F/AXTfEGDyk_SAKNjyAAAbufaB0Ws616.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh06yAZJmjAAAa74aBYiY165.svg", null, null, false),
                new CmmFunctionTask(2, null, 2, 2, "惠农政策", "pages/farm/index", "惠农政策", "/upload/group1/M00/00/0F/AXTfEGDyk_SAAw_TAAAcJKsrMkc112.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0k2AH8q9AAAbWsEFu2k147.svg", null, null, false),
                new CmmFunctionTask(2, null, 2, 2, "农户信息", "pages/userInformation/list", "农户信息", "/upload/group1/M00/00/10/AXTfEGDyk_SAB9x5AAAk2G5TEv8554.svg", 1, "/upload/group1/M00/00/00/rBBHwGCh0WmADlL5AAAj2gnbI7w306.svg", 6, null, false),
                new CmmFunctionTask(2, null, 3, 2, "通知栏", "pages/notice/index", "通知栏", "/upload/group1/M00/00/0F/AXTfEGDyk_SATB21AAAUN49mhW8321.svg", 1, "/upload/group1/M00/00/00/rBBHwGCh0q6AAplvAAATbQRYNOM519.svg", 5, null, false),
                new CmmFunctionTask(2, null, 4, 1, "我的待办", "https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_web_timestamp=1619841476237&showmenu=false&dd_share=false&corpid="  + corpId + "#/upcoming?swfrom=work_homepage&modalGroup=todo", "我的待办", "/upload/group1/M00/00/0F/AXTfEGDyk_SABzBbAAAVefMWBCg009.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0m-AcTvjAAAUsN-9kW4356.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 2, "督查督办", "pages/overseer/index", "督查督办", "/upload/group1/M00/00/10/AXTfEGDyk_SAYpsWAAAaiwcuJzs556.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0y6AUC4HAAAZwcPNRek050.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 2, "下户走访", "pages/visit/index", "下户走访", "/upload/group1/M00/00/10/AXTfEGDyk_SAMM3BAAAXmKgo0hg457.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0FiAZr6lAAAWLVBJ86c560.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 3, "工作汇报", core.get(CoreKey.RIZHI), "工作汇报", "/upload/group1/M00/00/0F/AXTfEGDyk_SAHtl1AAAcnKKwvvo760.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0eqAVtTqAAAbwsEvagg591.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 2, "会议管理", "pages/meeting/index", "会议管理", "/upload/group1/M00/00/10/AXTfEGDyk_SAMY4CAAAWlvqIEY0018.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0LCAJJB2AAAVzJ82LhE632.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 2, "行政管理", "pages/administer/index", "行政管理", "/upload/group1/M00/00/10/AXTfEGDyk_SAMcKzAAAVkhbkP0M035.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh032AZmwSAAAUyTqelTE257.svg", null, null, false),
                new CmmFunctionTask(2, null, 4, 3, "投票管理", core.get(CoreKey.ZHINENG), "投票管理", "/upload/group1/M00/00/0F/AXTfEGDyk_SAQ-zvAAAVDdyvy30941.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0pyALA4XAAAUQ9iyCJU584.svg", null, null, false),
                new CmmFunctionTask(2, null, 5, 2, "农事指导", "/pages/farmerGuide/index", "农事指导", "/upload/group1/M00/00/0F/AXTfEGDyk_SAGQMqAAAfleDnAgM740.svg", 2, "/upload/group1/M00/00/00/rBBHwGCh0VWAMBYhAAAeywIb9cc830.svg", null, null, false),
                new CmmFunctionTask(2, null, 5, 2, "疫情防控", "pages/sick/index", "疫情防控", "/upload/group1/M00/00/0F/AXTfEGDyk_SAcYONAAATcA1By1g409.svg", 2, "/upload/group1/M00/00/0F/AXTfEGDyk_SAcYONAAATcA1By1g409.svg", null, null, false),
                new CmmFunctionTask(2, null, 2, 2, "我有困难", "pages/people/index", "我有困难", "/upload/group1/M00/00/0F/AXTfEGDyk_SAJcT4AAAUVvIMbWU671.svg", 1, "/upload/group1/M00/00/00/rBBHwGCh0umAGKDPAAATjKuz6GA288.svg", 4, true, false),
                new CmmFunctionTask(2, null, 2, 2, "一键开会", "/pages/videoCall/videoCall", "一键开会", "/upload/group1/M00/00/0F/AXTfEGDyk_SACIe_AAAZw6UOxgk419.svg", 1, "/upload/group1/M00/00/00/AXTfEGDAdsSAZWj1AAAY9Y1xXMg095.svg", 2, null, false),
                new CmmFunctionTask(3, 1, null, 2, "小喇叭", "/pages/smallHorn/smallHorn", "", "/upload/group1/M00/00/16/AXTfEGESHx2AB191AAAYJaTA5Ok218.svg", 2, "/upload/group1/M00/00/16/AXTfEGESHx2AB191AAAYJaTA5Ok218.svg", null, null, true),
                new CmmFunctionTask(3, 3, null, 2, "分析预警", "pages/marketAnalyze/index", "", "/upload/group1/M00/00/20/AXTfEGFnnQyAOTh3AAAb9mzOdoY165.svg", 2, "/upload/group1/M00/00/20/AXTfEGFnnQyAOTh3AAAb9mzOdoY165.svg", null, null, true),
                new CmmFunctionTask(3, 3, null, 2, "价格大盘", "pages/marketPrice/price-list", "", "/upload/group1/M00/00/20/AXTfEGFnnQyAf5GxAAAXNXZbAHM273.svg", 2, "/upload/group1/M00/00/20/AXTfEGFnnQyAf5GxAAAXNXZbAHM273.svg", null, null, true)
        ));
    }

    public static List<SysConfigTask> sysConfigTask(CunDepInfo info) {
        return new ArrayList<>(List.of(
                new SysConfigTask(9L, "村名称", "village_name", info.getCunName(), 1),
                new SysConfigTask(9L, "干部组织ID", "g_org_guid", String.valueOf(info.getFuwu()), 1),
                new SysConfigTask(9L, "农户组织ID", "n_org_guid", String.valueOf(info.getNonghu()), 1),
                new SysConfigTask(10L, "户主导入模板", "farmer_template_url", "/uploadFils/farmer/农户导入模板.xls", 1),
                new SysConfigTask(10L, "扩展信息导入模板", "farmer_ext_url", "/uploadFils/farmer/农户扩展信息导入模板.xls", 1),
                new SysConfigTask(10L, "干部信息导入模板", "leader_imp_template", "/uploadFils/farmer/干部信息导入模板.xls", 1),
                new SysConfigTask(10L, "扩展主表", "ext_template_1", "/uploadFils/farmer/扩展主表导入模板.xls", 1),
                new SysConfigTask(10L, "扩展基本情况", "ext_template_2", "/uploadFils/farmer/扩展基本情况导入模板.xls", 1),
                new SysConfigTask(10L, "扩展家庭年收入情况", "ext_template_3", "/uploadFils/farmer/扩展家庭年收入导入模板.xls", 1),
                new SysConfigTask(10L, "扩展教育保障政策", "ext_template_4", "/uploadFils/farmer/扩展教育保障政策导入模板.xls", 1),
                new SysConfigTask(10L, "扩展健康扶贫及政策", "ext_template_5", "/uploadFils/farmer/健康扶贫及政策导入模板.xls", 1),
                new SysConfigTask(10L, "扩展其他政策享受情况", "ext_template_6", "/uploadFils/farmer/其他政策享受情况导入模板.xls", 1),
                new SysConfigTask(20L, "钉钉调用地图地址", "ding_map_url", "", 1),
                new SysConfigTask(30L, "干部组织path", "g_org_path", "1." + info.getCunDepId() + "." + info.getFuwu(), 1),
                new SysConfigTask(30L, "农户组织path", "n_org_path", "1." + info.getCunDepId() + "." + info.getNonghu(), 1)
        ));
    }
}
